package com.efivestar.idm.api.util.weixin.bean;

import com.alibaba.fastjson.annotation.JSONField;

import java.io.Serializable;
import java.util.Date;

public class JsTicket implements Serializable{

    private static final long serialVersionUID = 1L;

    @JSONField(name="ticket")
    private String ticket;
    @JSONField(name="expires_in")
    private int expiresIn;
    private Date expireTime;

    public String getTicket() {
        return ticket;
    }

    public void setTicket(String ticket) {
        this.ticket = ticket;
    }

    public int getExpiresIn() {
        return expiresIn;
    }

    public void setExpiresIn(int expiresIn) {
        this.expiresIn = expiresIn;
    }

    public Date getExpireTime() {
        return expireTime;
    }

    public void setExpireTime(Date expireTime) {
        this.expireTime = expireTime;
    }


    @Override
    public String toString() {
        return "Token{" +
                "ticket='" + ticket + '\'' +
                ", expiresIn=" + expiresIn +
                ", expireTime=" + expireTime +
                '}';
    }
}
